package com.zy.cat.entity.dev;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Index;
import javax.persistence.Table;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 
 * @info 5088直接邀请好友收入记录
 * @author Link
 * @date 2019-11-26 14:44
 */
@Entity
@Table(name = "zy_cat_5088_invite_income_data", indexes = { 
		@Index(name = "pid", columnList = "pid"),
		@Index(name = "yid", columnList = "yid"),
		@Index(name = "istatus", columnList = "istatus")})
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("5088邀请好友收入")
public class CatDev5088InviteIncomeHistory {

	@Id
	@Column(columnDefinition = "CHAR(11) NOT NULL COMMENT '被邀请人账号ID【5088邀请好友收入】'")
	@ApiModelProperty(value = "被邀请人账号ID", example = "3d6a4fa29641")
	private String pid;

	@Column(columnDefinition = "CHAR(11) NOT NULL COMMENT '邀请人账号ID'")
	@ApiModelProperty(value = "邀请人账号ID", example = "3d6a4fa29641")
	private String yid;
	
	@Column(columnDefinition = "BIGINT(6) DEFAULT '0' COMMENT '奖励金额（分）'")
	@ApiModelProperty(value = "奖励金额（分）", example = "300")
	private long income;
	
	@Column(columnDefinition = "BIGINT(6) DEFAULT '0' COMMENT '被邀请者淘礼金（分）'")
	@ApiModelProperty(value = "被邀请者淘礼金（分）", example = "3000")
	private long tlj;

	@Column(columnDefinition = "INT(6) DEFAULT '0' COMMENT '被邀请序列'")
	@ApiModelProperty(value = "被邀请序列", example = "1")
	private int iindex;

	@Column(columnDefinition = "INT(1) DEFAULT '0' COMMENT '邀请进度（0.已注册、1.已下单、2.已到账）'")
	@ApiModelProperty(value = "邀请进度（0.已注册、1.已下单、2.已到账）", example = "1")
	private int istatus;

	@Column(columnDefinition = "VARCHAR(20) DEFAULT '-'  COMMENT '创建时间'")
	@ApiModelProperty(value = "创建时间", example = "2019-02-22 12:56:56")
	private String ctime;

	@Column(columnDefinition = "VARCHAR(20) DEFAULT '-'  COMMENT '最后更新时间'")
	@ApiModelProperty(value = "最后更新时间", example = "2019-02-22 12:56:56")
	private String ltime;

	@Column(columnDefinition = "VARCHAR(200) DEFAULT '-' COMMENT '备注'")
	@ApiModelProperty(value = "备注", example = "备注")
	private String info = "-";

	public CatDev5088InviteIncomeHistory(String pid, String yid, String ctime,
			String ltime) {
		super();
		this.pid = pid;
		this.yid = yid;
		this.ctime = ctime;
		this.ltime = ltime;
	}
	
	
}
